package bg.btanev.eightyfour.client;

import bg.btanev.eightyfour.client.service.GWTCommandService;
import bg.btanev.eightyfour.client.service.GWTCommandServiceAsync;
import bg.btanev.eightyfour.client.view.TabContainerView;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootPanel;

public class EightyFour implements EntryPoint {
	@SuppressWarnings("unchecked")
	private static GWTCommandServiceAsync gwtService;

	@Override
	public void onModuleLoad() {
		gwtService = GWTCommandService.Util.getInstance();
		final HandlerManager eventBus = new HandlerManager(null);

		RootPanel rootPanel = RootPanel.get();
		rootPanel.setWidth("100%");
		rootPanel.setHeight("100%");

		RootAppControler appController = new RootAppControler(gwtService, eventBus,
				new TabContainerView());
		appController.go(rootPanel);
	}
}
